# Maintainer: Alexey Pavlov <Alexpux@gmail.com>

_realname=Test-Pod
pkgname=perl-${_realname}
pkgver=1.50
pkgrel=1
pkgdesc="Check for POD errors in files"
arch=('any')
url="http://search.cpan.org/dist/Test-Pod/"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-Module-Build')
options=('!emptydirs')
groups=('perl-modules')
source=(http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/${_realname}-${pkgver}.tar.gz)
md5sums=('6d94843add61471fa0b1ed49296000ef')

build() {
  cd ${_realname}-${pkgver}
  perl Build.PL installdirs=vendor
  ./Build
}

check() {
  cd ${_realname}-${pkgver}
  ./Build test
}

package() {
  cd ${_realname}-${pkgver}
  ./Build install destdir="${pkgdir}"
}
